package com.pmj.attendance_system.mapper;

import com.pmj.attendance_system.entity.Punchclock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 庞明杰
 * @since 2020-04-22
 */
@Repository
public interface PunchclockMapper extends BaseMapper<Punchclock> {

    //打卡
    int up_out(Punchclock punchClock);
    //签退
    int add_in(Punchclock punchClock);
    //迟到原因备注
    int late_result(Punchclock punchClock);
    //查询当前用户是否已经打卡
    Punchclock if_punchin(Punchclock punchClock);
    //查询当前用户是否已经签退
    Punchclock if_punchout(Punchclock punchClock);



}
